window: Remove reshow_with_initial_size
authorTimm Bäder <mail@baedert.org>
Tue, 11 Oct 2016 12:50:22 +0000 (14:50 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:17 +0000 (00:29 +0200)
gtk/gtkwindow.c
gtk/gtkwindow.h
tests/testgtk.c

index 16682ffe0c63ebee2c173b2627e21b4b5222c33c..235a031598ced236c9d7d9a4bad78356e6b93e3f 100644 (file)
@@ -5600,32 +5600,6 @@ gtk_window_get_position (GtkWindow *window,
     }
 }
 
-/**
- * gtk_window_reshow_with_initial_size:
- * @window: a #GtkWindow
- * 
- * Hides @window, then reshows it, resetting the
- * default size and position of the window. Used
- * by GUI builders only.
- * 
- * Deprecated: 3.10: GUI builders can call gtk_widget_hide(),
- *   gtk_widget_unrealize() and then gtk_widget_show() on @window
- *   themselves, if they still need this functionality.
- **/
-void
-gtk_window_reshow_with_initial_size (GtkWindow *window)
-{
-  GtkWidget *widget;
-  
-  g_return_if_fail (GTK_IS_WINDOW (window));
-
-  widget = GTK_WIDGET (window);
-  
-  gtk_widget_hide (widget);
-  gtk_widget_unrealize (widget);
-  gtk_widget_show (widget);
-}
-
 static void
 gtk_window_destroy (GtkWidget *widget)
 {
index 73a1595c87b5cfb0ab97b05f237c9148187d6cfe..c13eb6acdcf700e6ab6ddb9f7781b9a22b9c2386 100644 (file)
@@ -429,10 +429,6 @@ GtkWindowGroup *gtk_window_get_group (GtkWindow   *window);
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_window_has_group        (GtkWindow   *window);
 
-/* Ignore this unless you are writing a GUI builder */
-GDK_DEPRECATED_IN_3_10
-void     gtk_window_reshow_with_initial_size (GtkWindow *window);
-
 GDK_AVAILABLE_IN_ALL
 GtkWindowType gtk_window_get_window_type     (GtkWindow     *window);
 
index 7a73e70da9e56707398de3c9d5a196939378f425..bded479ed651414225147d1b50d40938b5c442da 100644 (file)
@@ -7217,16 +7217,6 @@ window_controls (GtkWidget *window)
 
   g_object_set_data (G_OBJECT (control_window), "spin2", spin);
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-  button = gtk_button_new_with_label ("Reshow with initial size");
-  g_signal_connect_object (button,
-                          "clicked",
-                          G_CALLBACK (gtk_window_reshow_with_initial_size),
-                          window,
-                          G_CONNECT_SWAPPED);
-  gtk_box_pack_end (GTK_BOX (vbox), button, FALSE, FALSE);
-  G_GNUC_END_IGNORE_DEPRECATIONS;
-
   button = gtk_button_new_with_label ("Queue resize");
   g_signal_connect_object (button,
                           "clicked",